# coding: utf-8
# 18-11-8 下午1:36

from modernrpc.core import rpc_method

from usercenter.apps.userauth.base.user import get_user_info

@rpc_method
def rpc_add(a, b):
    return a + b


@rpc_method
def rpc_get_customer(user_id):
    '''
    获取客户注册信息
    :param user_id:
    :return:
    {
    'username':'xx', 'email':'xx', 'cellphone':'xx', 'status':'xx'
    }
    '''
    return get_user_info(user_id)
